package com.lightsaber.trade.cloth.dao.planning;

import org.springframework.stereotype.Component;

import com.lightsaber.trade.core.dao.BaseDao;
import com.lightsaber.trade.cloth.entity.planning.AdminDuty;

@Component
public class AdminDutyDao extends BaseDao<AdminDuty, String> {

    public AdminDuty findUniqueAdminDuty(final String level3PlanningId, final String discipline,
            final String campus, final String dep, final int year) {
        eq("level3Planning.id", level3PlanningId);
        eq("discipline", discipline);
        eq("operatingCampus", campus);
        eq("operatingUnit", dep);
        eq("year", year);
        return unique();
    }
}
